package asapIs134CK.womi.client.profile;
import java.io.Serializable;




public class UserClient implements Serializable{
	private String _nickname;
	private String _email;
	private String _avatar;
	private String _md5pwd;
	private int scoreSudoku;
	private int scoreFroggit;
	private int scoreArithmeticQuizz;
	private boolean isAdmin;
	private boolean isTestCreator;
	
	private UserClient(){
		this("","","","");
		scoreSudoku = 0;
		scoreFroggit = 0;
		scoreSudoku = 0;
		isAdmin = false;
		isTestCreator = false;
	}
	
	public UserClient(String nickname, String email, String avatar, String md5pwd){
		setNickname(nickname);
		setEmail(email);
		setAvatar(avatar);
		_md5pwd = md5pwd;
		scoreSudoku = 0;
		scoreFroggit = 0;
		scoreSudoku = 0;
		isAdmin = false;
		isTestCreator = false;		
	}
	
	public void setNickname(String _nickname) {
		this._nickname = _nickname;
	}

	public String getNickname() {
		return _nickname;
	}

	public void setEmail(String _email) {
		this._email = _email;
	}

	public String getEmail() {
		return _email;
	}

	public void setAvatar(String _avatar) {
		this._avatar = _avatar;
	}

	public String getAvatar() {
		return _avatar;
	}

	public String getMd5Pwd() {
		// TODO Auto-generated method stub
		return _md5pwd;
	}

	public void setMd5pwd(String md5) {
		_md5pwd = md5;
	}

	public int getScore() {
		return scoreArithmeticQuizz+scoreFroggit+scoreSudoku;
	}

	public void setScoreSudoku(int scoreSudoku) {
		this.scoreSudoku = scoreSudoku;
	}

	public int getScoreSudoku() {
		return scoreSudoku;
	}

	public void setScoreFroggit(int scoreFroggit) {
		this.scoreFroggit = scoreFroggit;
	}

	public int getScoreFroggit() {
		return scoreFroggit;
	}

	public void setScoreArithmeticQuizz(int scoreArithmeticQuizz) {
		this.scoreArithmeticQuizz = scoreArithmeticQuizz;
	}

	public int getScoreArithmeticQuizz() {
		return scoreArithmeticQuizz;
	}

	public void setAdmin(boolean isAdmin) {
		this.isAdmin = isAdmin;
	}

	public boolean isAdmin() {
		return isAdmin;
	}

	public void setTestCreator(boolean isTestCreator) {
		this.isTestCreator = isTestCreator;
	}

	public boolean isTestCreator() {
		return isTestCreator;
	}

}
